package com.arsn.dome.service.impl;


import com.arsn.dome.entity.User;
import com.arsn.dome.entity.UserExcel;
import com.arsn.dome.mapper.UserMapper;
import com.arsn.dome.service.UserService;
import com.arsn.dome.vo.UserVo;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户服务实现层
 * @author zhongrj
 */
@Service
@AllArgsConstructor
public class UserServiceImpl implements UserService {

    private final UserMapper userMapper;

    /**
     * 查询用户所有数据
     * @return
     */
    @Override
    public List<UserExcel> selUserList() {
        return userMapper.selUserList();
    }

    /**
     * 统计用户中男女各多少人
     * @return
     */
    @Override
    public List<UserVo> selUserPie() {
        return userMapper.selUserPie();
    }
}
